package cn.org.timespace.easyframe.util;

import java.io.UnsupportedEncodingException;

/**
 * <p>
 * 编码转换
 * </p>
 * 
 * @version 1.0, 11/03/31
 * @since 1.0
 * @author 
 */

public class EncodingChange {

	private static final String ISO88591 = "ISO8859-1";
	private static final String UTF8 = "gb2312";

	public static String iso88591ToUTF8(String ori) {
		if (ori != null && !ori.equals("")) {
			try {
				return new String(ori.getBytes(ISO88591), UTF8);
			} catch (UnsupportedEncodingException e) {
			}
		}
		return null;
	}
}
